{% extends 'bootstrap-modal-layout.html.twig' %}

{% block title %}{{ 'course.member.tips.title'|trans }}{% endblock %}
{% block body %}
  <div class="alert">
    {% if member.deadline < timestamp() and member.deadline != 0 %}
      {% if exercise.expiryMode == 'date' %}
        {{ 'item_bank_exercise.member.expiry_tips'|trans }}
      {% else %}
        {{ 'item_bank_exercise.member.allow_buy.tips'|trans }}
      {% endif %}
    {% endif %}
  </div>
{% endblock %}

{% set hide_footer = exercise.expiryMode != 'days' %}

{% block footer %}
  <a href="{{ path('item_bank_exercise_member_deadline_reach',{id: exercise.id}) }}" class="btn btn-primary">
    {{'course.member.course.join_btn'|trans }}
  </a>
{% endblock %}
